﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.Domain;
using OFB.BLL.ViewModel;

namespace OFB.BLL.Repository
{
    public interface ITopicBLL
    {
       int CheckByName(string topicName, string subjectName);

       string GetSubCodeBySubName(string subjectName);
       int CreateTopic(string subjectName, string topicName);
       int UpdateTopic(int topicId, int subjectId, string topicName);
       TopicListViewModel FindAll(int page = 0);
       ICollection<Subject> GetSubjectName();
       int GetSubjectIdBySubjectName(string subjectName);
       int TopicChangeStatus(int TopicId, bool isDiabled);
       TopicListViewModel FindByAll(string search, int page = 0, int findBy = 2);
       TopicListViewModel FindByTopicName( string TopicName, int page = 0, int findBy = 2);
       TopicListViewModel FindBySubjectCode(string subjectCode, int page = 0, int findBy = 2);
       Subject FindBySubjectId(int subjectID);
       string GetSubjectCodeBySubjectName(string subjectName);

       int CheckForUpdate(int topicId, string topicName, string subjectName);

       bool CheckSub(string subjectCode);
    }
}
